package dialer.ws.base.query;

public class QueryParameter {

	public static enum TemporalType {
		NONE, DATE, TIME, TIMESTAMP
	};

	private final Object value; // this class should be a generic type

	private final TemporalType type; // optional

	/**
	 * @param value
	 */

	public QueryParameter(final Object value) {
		super();

		this.value = value;
		this.type = TemporalType.NONE;
	}

	/**
	 * @param value
	 * @param type
	 */

	public QueryParameter(final Object value, final TemporalType type) {
		super();

		this.value = value;
		this.type = type;

	}

	/**
	 * Incluir aquí la descripcion del metodo.
	 * 
	 * @return
	 */

	public TemporalType getType() {
		return this.type;
	}

	/**
	 * Incluir aquí la descripcion del metodo.
	 * 
	 * @return
	 */

	public Object getValue() {
		return this.value;
	}
}
